/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
import java.io.IOException;

/**
 * @author Monster
 */
public class GameDesign_1 {
    
    //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private Image boss;
    private Sprite Trum;
    public int idleDelay = 200;
    public int[] idle = {18, 19, 20};
    public int walkDelay = 200;
    public int[] walk = {0, 1, 2, 3, 4, 5};
    public int attackDelay = 200;
    public int[] attack = {6, 7, 8, 9, 10};
    public int hurtDelay = 200;
    public int[] hurt = {12, 13, 14};
    private Image fire1;
    private Sprite fired;
    public int firedseq002Delay = 100;
    public int[] firedseq002 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21};
    private Image enemy02;
    private Sprite boss_enemy;
    public int boss_enemyseq001Delay = 200;
    public int[] boss_enemyseq001 = {0};
    private Image vatpham;
    private Sprite vatpham_mau;
    public int vatpham_mauseq001Delay = 200;
    public int[] vatpham_mauseq001 = {4};
    private Sprite vatpham_banhxe;
    public int vatpham_banhxeseq001Delay = 200;
    public int[] vatpham_banhxeseq001 = {3};
    private Sprite vatpham_lua;
    public int vatpham_luaseq001Delay = 200;
    public int[] vatpham_luaseq001 = {1};
    private Sprite vatpham_tocdo;
    public int vatpham_tocdoseq001Delay = 200;
    public int[] vatpham_tocdoseq001 = {0};
    private Image fire_long;
    private Image fire_long_1;
    private Sprite fire_big;
    public int fire_bigseq002Delay = 200;
    public int[] fire_bigseq002 = {0, 1, 2, 3};
    private Sprite bom;
    public int bomseq001Delay = 200;
    public int[] bomseq001 = {0, 1, 2, 4, 5};
    private Image bomb;
    //</editor-fold>//GEN-END:|fields|0|
    
    //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
    //</editor-fold>//GEN-END:|methods|0|

    public Image getBoss() throws java.io.IOException {//GEN-BEGIN:|1-getter|0|1-preInit
        if (boss == null) {//GEN-END:|1-getter|0|1-preInit
            // write pre-init user code here
            boss = Image.createImage("/res/enemies/boss.png");//GEN-BEGIN:|1-getter|1|1-postInit
        }//GEN-END:|1-getter|1|1-postInit
        // write post-init user code here
        return this.boss;//GEN-BEGIN:|1-getter|2|
    }
//GEN-END:|1-getter|2|

    public Sprite getTrum() throws java.io.IOException {//GEN-BEGIN:|2-getter|0|2-preInit
        if (Trum == null) {//GEN-END:|2-getter|0|2-preInit
            // write pre-init user code here
            Trum = new Sprite(getBoss(), 60, 60);//GEN-BEGIN:|2-getter|1|2-postInit
            Trum.setFrameSequence(idle);//GEN-END:|2-getter|1|2-postInit
            // write post-init user code here
        }//GEN-BEGIN:|2-getter|2|
        return Trum;
    }
//GEN-END:|2-getter|2|

    public Image getFire1() throws java.io.IOException {//GEN-BEGIN:|7-getter|0|7-preInit
        if (fire1 == null) {//GEN-END:|7-getter|0|7-preInit
            // write pre-init user code here
            fire1 = Image.createImage("/res/enemies/fire1.png");//GEN-BEGIN:|7-getter|1|7-postInit
        }//GEN-END:|7-getter|1|7-postInit
        // write post-init user code here
        return this.fire1;//GEN-BEGIN:|7-getter|2|
    }
//GEN-END:|7-getter|2|

    public Sprite getFired() throws java.io.IOException {//GEN-BEGIN:|10-getter|0|10-preInit
        if (fired == null) {//GEN-END:|10-getter|0|10-preInit
            // write pre-init user code here
            fired = new Sprite(getFire1(), 40, 40);//GEN-BEGIN:|10-getter|1|10-postInit
            fired.setFrameSequence(firedseq002);//GEN-END:|10-getter|1|10-postInit
            // write post-init user code here
        }//GEN-BEGIN:|10-getter|2|
        return fired;
    }
//GEN-END:|10-getter|2|

    public Image getEnemy02() throws java.io.IOException {//GEN-BEGIN:|12-getter|0|12-preInit
        if (enemy02 == null) {//GEN-END:|12-getter|0|12-preInit
            // write pre-init user code here
            enemy02 = Image.createImage("/res/enemies/enemy02.png");//GEN-BEGIN:|12-getter|1|12-postInit
        }//GEN-END:|12-getter|1|12-postInit
        // write post-init user code here
        return this.enemy02;//GEN-BEGIN:|12-getter|2|
    }
//GEN-END:|12-getter|2|

    public Sprite getBoss_enemy() throws java.io.IOException {//GEN-BEGIN:|13-getter|0|13-preInit
        if (boss_enemy == null) {//GEN-END:|13-getter|0|13-preInit
            // write pre-init user code here
            boss_enemy = new Sprite(getEnemy02(), 40, 40);//GEN-BEGIN:|13-getter|1|13-postInit
            boss_enemy.setFrameSequence(boss_enemyseq001);//GEN-END:|13-getter|1|13-postInit
            // write post-init user code here
        }//GEN-BEGIN:|13-getter|2|
        return boss_enemy;
    }
//GEN-END:|13-getter|2|

    public Image getVatpham() throws java.io.IOException {//GEN-BEGIN:|15-getter|0|15-preInit
        if (vatpham == null) {//GEN-END:|15-getter|0|15-preInit
            // write pre-init user code here
            vatpham = Image.createImage("/res/vatpham/vatpham.png");//GEN-BEGIN:|15-getter|1|15-postInit
        }//GEN-END:|15-getter|1|15-postInit
        // write post-init user code here
        return this.vatpham;//GEN-BEGIN:|15-getter|2|
    }
//GEN-END:|15-getter|2|

    public Sprite getVatpham_mau() throws java.io.IOException {//GEN-BEGIN:|16-getter|0|16-preInit
        if (vatpham_mau == null) {//GEN-END:|16-getter|0|16-preInit
            // write pre-init user code here
            vatpham_mau = new Sprite(getVatpham(), 30, 30);//GEN-BEGIN:|16-getter|1|16-postInit
            vatpham_mau.setFrameSequence(vatpham_mauseq001);//GEN-END:|16-getter|1|16-postInit
            // write post-init user code here
        }//GEN-BEGIN:|16-getter|2|
        return vatpham_mau;
    }
//GEN-END:|16-getter|2|

    public Sprite getVatpham_banhxe() throws java.io.IOException {//GEN-BEGIN:|18-getter|0|18-preInit
        if (vatpham_banhxe == null) {//GEN-END:|18-getter|0|18-preInit
            // write pre-init user code here
            vatpham_banhxe = new Sprite(getVatpham(), 30, 30);//GEN-BEGIN:|18-getter|1|18-postInit
            vatpham_banhxe.setFrameSequence(vatpham_banhxeseq001);//GEN-END:|18-getter|1|18-postInit
            // write post-init user code here
        }//GEN-BEGIN:|18-getter|2|
        return vatpham_banhxe;
    }
//GEN-END:|18-getter|2|

    public Sprite getVatpham_lua() throws java.io.IOException {//GEN-BEGIN:|20-getter|0|20-preInit
        if (vatpham_lua == null) {//GEN-END:|20-getter|0|20-preInit
            // write pre-init user code here
            vatpham_lua = new Sprite(getVatpham(), 30, 30);//GEN-BEGIN:|20-getter|1|20-postInit
            vatpham_lua.setFrameSequence(vatpham_luaseq001);//GEN-END:|20-getter|1|20-postInit
            // write post-init user code here
        }//GEN-BEGIN:|20-getter|2|
        return vatpham_lua;
    }
//GEN-END:|20-getter|2|

    public Sprite getVatpham_tocdo() throws java.io.IOException {//GEN-BEGIN:|22-getter|0|22-preInit
        if (vatpham_tocdo == null) {//GEN-END:|22-getter|0|22-preInit
            // write pre-init user code here
            vatpham_tocdo = new Sprite(getVatpham(), 30, 30);//GEN-BEGIN:|22-getter|1|22-postInit
            vatpham_tocdo.setFrameSequence(vatpham_tocdoseq001);//GEN-END:|22-getter|1|22-postInit
            // write post-init user code here
        }//GEN-BEGIN:|22-getter|2|
        return vatpham_tocdo;
    }
//GEN-END:|22-getter|2|

    public Image getFire_long() throws java.io.IOException {//GEN-BEGIN:|24-getter|0|24-preInit
        if (fire_long == null) {//GEN-END:|24-getter|0|24-preInit
            // write pre-init user code here
            fire_long = Image.createImage("/res/canhvat/quangcanh.png");//GEN-BEGIN:|24-getter|1|24-postInit
        }//GEN-END:|24-getter|1|24-postInit
        // write post-init user code here
        return this.fire_long;//GEN-BEGIN:|24-getter|2|
    }
//GEN-END:|24-getter|2|

    public Image getFire_long_1() throws java.io.IOException {//GEN-BEGIN:|27-getter|0|27-preInit
        if (fire_long_1 == null) {//GEN-END:|27-getter|0|27-preInit
            // write pre-init user code here
            fire_long_1 = Image.createImage("/res/enemies/fire_long_1.png");//GEN-BEGIN:|27-getter|1|27-postInit
        }//GEN-END:|27-getter|1|27-postInit
        // write post-init user code here
        return this.fire_long_1;//GEN-BEGIN:|27-getter|2|
    }
//GEN-END:|27-getter|2|

    public Sprite getFire_big() throws java.io.IOException {//GEN-BEGIN:|28-getter|0|28-preInit
        if (fire_big == null) {//GEN-END:|28-getter|0|28-preInit
            // write pre-init user code here
            fire_big = new Sprite(getFire_long_1(), 150, 150);//GEN-BEGIN:|28-getter|1|28-postInit
            fire_big.setFrameSequence(fire_bigseq002);//GEN-END:|28-getter|1|28-postInit
            // write post-init user code here
        }//GEN-BEGIN:|28-getter|2|
        return fire_big;
    }
//GEN-END:|28-getter|2|

    public Image getBomb() throws java.io.IOException {//GEN-BEGIN:|30-getter|0|30-preInit
        if (bomb == null) {//GEN-END:|30-getter|0|30-preInit
            // write pre-init user code here
            bomb = Image.createImage("/res/bomb/bomb.png");//GEN-BEGIN:|30-getter|1|30-postInit
        }//GEN-END:|30-getter|1|30-postInit
        // write post-init user code here
        return this.bomb;//GEN-BEGIN:|30-getter|2|
    }
//GEN-END:|30-getter|2|

    public Sprite getBom() throws java.io.IOException {//GEN-BEGIN:|31-getter|0|31-preInit
        if (bom == null) {//GEN-END:|31-getter|0|31-preInit
            // write pre-init user code here
            bom = new Sprite(getBomb(), 30, 30);//GEN-BEGIN:|31-getter|1|31-postInit
            bom.setFrameSequence(bomseq001);//GEN-END:|31-getter|1|31-postInit
            // write post-init user code here
        }//GEN-BEGIN:|31-getter|2|
        return bom;
    }
//GEN-END:|31-getter|2|
    
}
